package com.zxt.content.user.controller;

import com.zxt.content.user.service.BUserService;
import com.zxt.content.user.resp.BUserVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zxt
 */
@Slf4j
@RequestMapping("/test/login/")
@RestController
@AllArgsConstructor
@Api(tags = "测试登录验证接口")
public class TestLoginController {

    private final BUserService bUserService;

    @GetMapping("/index")
    @ApiOperation(value = "用户测试接口", notes = "用户测试接口")
    private List<BUserVO> index() {
        return bUserService.query();
    }
}
